package com.goods.business.service;

import com.goods.common.error.BusinessException;
import com.goods.common.model.business.Supplier;
import com.goods.common.vo.business.SupplierVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

public interface SupplierService {
    PageVO<SupplierVO> findSupplierList(Integer pageNum, Integer pageSize, SupplierVO supplierVO);
    //添加物资来源信息
    void add(SupplierVO supplierVO);
    //编辑物资来源
    SupplierVO edit(Long id);
    //修改物资来源
    void update(Long id, SupplierVO supplierVO) throws BusinessException;
    //删除
    void delete(Long id);
    //根据物资来源的id获取物资的信息
    Supplier getBySupplierId(Long id);
    //获取所有的物资信息来源
    List<SupplierVO> findAll();
}
